Method 3: Phase Space
In the previous section, we derived the differential equation that describes the motion of a mass-spring system. This differential equation is a second-order ordinary differential equation (ODE) that can be written as:
In this section, we will explore the third method of solving this differential equation: using the powerful tools of phase space and linear algebra.
Table of Contents
Phase Space
We know that the second derivative of the position function
And since
This is the fun part - now imagine we have a coordinate system with two axes: one for
Notice that this coordinate system is not a physical space, unlike the usual
Then, the system of first-order ODEs can be written as:
This means that at each point
In the graph above, the horizontal axis represents the position
(The movement is not perfectly accurate since its done numerically, but it gives a good idea of the motion.)
Notice that the path traced by the point is an ellipse, which should make intuitive sense as the system oscillates back and forth. We can analyze some properties of the system by looking at this phase space. For one, we can pick an initial point and trace its path to see how the system evolves over time:
We can notice that:
- At the horizontal intercepts, the velocity is zero, while the displacements are at their maximum. This corresponds to the mass being at the extreme points of its motion.
- At the vertical intercepts, the displacement is zero, while the velocity is at its maximum. This corresponds to the mass being at the equilibrium position.
Vectors and Matrices
To solve the system of first-order ODEs, carefully observe the system of equations:
We can rewrite the right-hand side of the equation as a matrix-vector product, where the vector is just the state vector
This matrix is known as the state matrix of the system and is denoted by
This should look familiar if you've studied any differential equations.
It resembles exponential growth and decay equations, where we have
Where
So we have
Eigenvalues and Eigenvectors
Now we need to find the eigenvalues of the state matrix
Where
The eigenvalues are complex numbers, which means the system will oscillate.
Deriving the General Solution
Now that we have
For
This gives us the system of equations:
The second equation is just the first equation multiplied by
Similarly, for
Then, the general solution to the system of ODEs is the sum of the two eigenvectors multiplied by their corresponding eigenvalues:
This is the general solution to the system of ODEs that describe the motion of an undamped mass-spring system. However, this solution is in terms of complex numbers, which can be difficult to interpret. So we can separate the real and imaginary parts of the solution to get a more intuitive form.
Using Euler's formula
Let
Taking just the real part of the solution, we have:
Now we have the general solution to the system of ODEs that describe the motion of an undamped mass-spring system.
Initial Conditions
Finally, we need to find the constants
Just differentiating
For
Let
Differentiating
At
Hence:
Next, consider
Using the triangle,
With all these values, we can now write the general solution in two forms:
Undamped SHO General Solution:
Where:
is the initial position of the mass. is the initial velocity of the mass. is the angular frequency of the mass-spring system. is the amplitude of the motion. is the phase shift of the motion.
Similarly, for
Undamped SHO Velocity:
Where:
is the initial position of the mass. is the initial velocity of the mass. is the angular frequency of the mass-spring system. is the amplitude of the velocity. is the phase shift of the velocity.
Summary and Next Steps
The important takeaway from this section is not just the solution to the system of ODEs. Rather, the concepts of phase space, eigenvalues, and eigenvectors are far more crucial in understanding the behavior of linear systems.